package com.mouse.damo.util;

public class LogUtil {
    public static void logNotNull(Object o) {
        if (o != null) {
            if (o instanceof String && "".equals(o)) return;
            System.out.println(o);
        }
    }

    public static void logArray(int o[], int index, int value) {
        if (o[index] != value) return;
        for (int i = 0; i < o.length; i++) {
            System.out.print(o[i]);
            System.out.print(" ");
        }
        System.out.println();
    }

    public static void logArray(int o[]) {
        for (Object o1 : o) {
            System.out.print(o1);
            System.out.print(" ");
        }
        System.out.println();
    }

}
